package com.zj.core.bean

import java.io.Serializable

/**
 * Created by Administrator on 2019/4/10.
 */

class ImeiConfigBean : Serializable {

    /**
     * dat : {"paramlist":{"mac":"1234"}}
     * cmd : select
     */
    var dat: DatEntity? = null
    var cmd = "select "

    class DatEntity {
        /**
         * paramlist : {"mac":"1234"}
         */
        var paramlist: ParamlistEntity? = null

        class ParamlistEntity {
            /**
             * mac : 1234
             */
            private var mac: String? = null

            fun setMac(mac: String?): ParamlistEntity {
                this.mac = mac
                return this
            }

            fun getMac(): String? {
                return mac
            }
        }
    }

    class ImeiConfigResultBean : Serializable {

        /**
         * ret : 10000
         * msg : 查询成功
         * ver : 1
         * dat : {"total":1,"pages":1,"pageSize":10,"pageindex":1,"rows":[{"hospitalid":"1","departmentid":"1","id":1,"mac":"351782072730573"}]}
         */
        var ret: String? = null
        var msg: String? = null
        var ver: String? = null
        var dat: DatEntity? = null

        inner class DatEntity {
            /**
             * total : 1
             * pages : 1
             * pageSize : 10
             * pageindex : 1
             * rows : [{"hospitalid":"1","departmentid":"1","id":1,"mac":"351782072730573"}]
             */
            var total: Int = 0
            var pages: Int = 0
            var pageSize: Int = 0
            var pageindex: Int = 0
            var rows: List<RowsEntity>? = null

            inner class RowsEntity{
                /**
                 * hospitalid : 1
                 * departmentid : 1
                 * id : 1
                 * mac : 351782072730573
                 */
                var hospitalid: String? = null
                var departmentid: String? = null
                var id: Int = 0
                var mac: String? = null
            }
        }
    }
}
